.video-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #141414;
  position: relative;
}

/* 按钮容器样式 - 居中显示 */
.generate-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.generate-button-wrapper .ant-btn {
  background-color: #2563eb;
  border-color: #2563eb;
  font-size: 16px;
  padding: 8px 16px;
}

.generate-button-wrapper .ant-btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* 视频播放器样式 - 居中显示并等比例缩放 */
.video-player {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* 预览容器样式 */
.preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.preview-container {
  border: 1px solid #434343;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;  
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #161515;
}

.preview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.preview-text {
  color: #666666;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  user-select: none;
}

.pixi-controls {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.pixi-controls .ant-btn {
  background-color: #2563eb;
  border-color: #2563eb;
  font-size: 14px;
  padding: 6px 12px;
}

.pixi-controls .ant-btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* 确保组件完全适应父容器 */
.left-box > * {
  width: 100%;
  height: 100%;
}

/* 加载和错误状态 */
.loading-wrapper,
.error-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loading-text,
.error-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.error-text {
  color: #ff6b6b;
}

/* 画布尺寸信息显示 */
.canvas-size-info {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.canvas-size-info.draggable {
  cursor: move;
  user-select: none;
}

.canvas-size-info.draggable:hover {
  background-color: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.size-label {
  color: #a0a0a0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.size-value {
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* 播放控制面板样式 */
.playback-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 500px;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.playback-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.playback-controls.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.playback-controls.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* 播放时保持控制面板显示 */
.video-preview-container:hover .playback-controls,
.video-preview-container.playing .playback-controls {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 播放按钮容器 */
.play-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.play-pause-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.play-pause-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #2563eb !important;
  transform: scale(1.1) !important;
}

.play-pause-button:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #2563eb !important;
}

/* 时间显示容器 */
.time-display-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.time-display {
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* 测试按钮容器 */
.test-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  gap: 4px;
}

.test-button-container .ant-btn {
  color: #ffffff !important;
  font-size: 10px !important;
  padding: 2px 4px !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.test-button-container .ant-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #2563eb !important;
}

.progress-container {
  flex: 1;
  min-width: 200px;
  margin: 0 8px;
}

/* 简化的播放控制面板样式 */
.simple-playback-controls {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 300px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.simple-playback-controls.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.simple-playback-controls.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* 播放时保持控制面板显示 */
.video-preview-container:hover .simple-playback-controls,
.video-preview-container.playing .simple-playback-controls {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}